package net.csdn.business.notify.common.model.entity;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.notify.common.entity.SuperEntity;

/**
 * 通知中心-用户通知配置对象 notify_user_setting
 * 
 * @author ruoyi
 * @date 2023-11-27
 */
@Data
@TableName(value = "notify_user_setting",autoResultMap = true)
@NoArgsConstructor
@AllArgsConstructor
public class NotifyUserSetting extends SuperEntity
{
    private static final long serialVersionUID = 1L;

    /** 目标主体类型 */
    private String objectId;
    /** 目标主体类型 */
    private String targetType;
    /** 触发动作类型 */
    private String act;
    /** 触发动作类型 */
    private String actDesc;
    /** 通知配置详情 */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private JSONObject setting;
    /** 用户id，当为-1时，为系统预设 */
    private String userId;
}
